package org.example.demo15_command.demo2;

public class CheckButton implements AbstractButton{

    private ConnectionList connectionList;
    private String name;
    public CheckButton(ConnectionList connectionList,String name){
        this.connectionList = connectionList;
        this.name = name;
    }

    @Override
    public void execute() {
        connectionList.check(name);
    }
}
